package com.proxy.router;

import com.proxy.common.model.ProxyTable;
import com.proxy.common.sql.SqlBuilder;
import com.proxy.parser.result.SelectResult;

import java.util.List;

/**
 * Created by liufish on 16/11/1.
 */
public class SQLRouteDetail {



    public void routeSelect(SQLRouteResult result){

        SelectResult selectResult = (SelectResult)result.getParsedResult();

        SqlBuilder builder = SqlBuilder.builder();

        //单表操作
        if(selectResult.getTables().size() == 1){






            //是否有分库主键
            List<ProxyTable.Condition> conditions =  selectResult.getConditions();


            //不需要合并结果集
            if(selectResult.getGroupByColumns().size() == 0 && selectResult.getOrderByColumns().size() == 0){

            }



        }



    }

}
